package com.study.thread;

/**
 * @PACKAGE_NAME: com.study.thread
 * @CLASS_NAME: ThreadStatus
 * @USER: kagura
 * @Description TODO 线程状态，线程包含New, Runnable, Blocked, Waiting, Timed Waiting, Terminated几种状态
 * @Date 2021/3/3 10:10 上午
 * @MONTH_NAME_FULL: 三月
 * @DAY: 03
 * @DAY_NAME_FULL: 星期三
 * @PROJECT_NAME: Study
 **/
public class ThreadStatus {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> {
            System.out.println("线程启动中...");
        });
        System.out.println("线程开始启动...");
        t.start();
        t.join();
        System.out.println("线程结束。");
    }
}
